:root {
    --el-color-primary: #125bff !important;
}

* {
    margin: 0;
    padding: 0;
}

html,
body,
#app {
    width: 100%;
    height: 100%;
    font-family: "R";
    font-size: 16px;
}

// 页面基本布局样式
#base-container {
    width: 100%;
    height: 100%;
    box-shadow: 0 0 3px rgba(0, 0, 0, .2);
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
    background-color: #fff;

    .base-title {
        font-weight: bold;
        font-size: 22px;
        margin-bottom: 5px;
        padding-left: 10px;

        .base-title-text {
            display: flex;
            align-items: center;
        }

    }

    .base-title-back {
        display: flex;
        justify-content: space-between;
    }

    .base-search {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-top: 10px;
        padding: 0 15px;
        transition: max-height 1s ease, padding 1s ease, opacity 1s ease;
        box-sizing: border-box;
        transition: all .5s;

        &.base-search-active {
            height: 0;
            overflow: hidden;
        }

        .base-search-left {
            width: 90%;
            border-right: 1px solid #7e7f7f;

            @media screen and (min-width: 1100px) {
                .el-form {
                    display: grid;
                    grid-template-columns: repeat(3, 1fr);
                }
            }

            @media screen and (max-width: 1100px) {
                .el-form {
                    display: grid;
                    grid-template-columns: repeat(2, 1fr);
                }
            }

            @media screen and (max-width: 800px) {
                .el-form {
                    display: grid;
                    grid-template-columns: repeat(1, 1fr);
                }
            }

            .el-form {


                .el-form-item__label {
                    color: #000;
                    font-size: 13px;
                }
            }
        }

        .base-search-right {
            width: 10%;
            display: flex;
            align-items: center;
            flex-direction: column;
            justify-content: center;

            .el-button {
                margin: 0;

                &:nth-child(2) {
                    margin-top: 10px;
                }
            }
        }
    }

    .base-menu {
        height: 50px;
        position: relative;
        margin: 5px 0;
        display: flex;
        align-items: center;

        .hide-menu {
            width: 0;
            height: 100%;
            overflow: hidden;
        }

        .hide-active {
            position: absolute;
            border-radius: 5px;
            padding: 0 15px;
            top: 0;
            z-index: 999;
            width: 100%;
            height: 100%;
            transition: all .5s;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, .2);
            display: flex;
            align-items: center;
            box-sizing: border-box;
        }
    }

    .base-table {
        .link {
            &:hover {
                cursor: pointer;
                color: $primary-color;
            }
        }

        .menu-flex {
            display: flex;
            justify-content: space-around;

            span:hover {
                transition: .2s;
                cursor: pointer;
                color: $primary-color;
            }
        }
    }

}

// 菜单hover样式
.el-menu .el-menu-item:hover {
    background-color: $primary-color !important;
    color: #fff !important;

    &.is-active {
        color: #fff !important;
    }
}

// Input 样式修改
.el-input,
.el-select {
    .el-input__suffix-inner {
        margin-right: 15px;
    }

    .el-tag {
        font-size: 14px;
        box-shadow: unset !important;
        border-radius: 0px !important;
        font-family: "M";
        color: #1d2129 !important;
    }

    .el-input__wrapper,
    .el-input__inner,
    .el-textarea__inner {
        background-color: #f7f8fa !important;
        border: none;
        font-size: 14px;
        box-shadow: unset !important;
        border-radius: 0px !important;
        font-family: "M";
        color: #1d2129 !important;

        :deep(.el-input__suffix-inner) {
            margin-right: 15px;
        }

        :deep(.el-input__suffix) {
            .el-icon {
                font-weight: bold !important;
                color: #000 !important;
            }
        }

        &::placeholder {
            color: #86909c !important;
        }
    }
}

.el-table {
    --el-border-color-lighter: #d3d2d2 !important;
    --el-table-row-hover-bg-color: #b6ccff !important;
}



.el-dialog {
    border-radius: 6px !important;
    overflow: hidden;

    .el-dialog__header {
        height: 52px;
        padding: unset;
        font-size: 18px !important;
        letter-spacing: 2px !important;
        line-height: 24px;
        display: flex;
        align-items: center;
        letter-spacing: 0px;
        border-bottom: 1px solid #e5e6eb;
        font-weight: bold;

        .el-dialog__title {
            padding: 12px 20px;
            font-family: "M";
            color: $primary-color!important;
        }

        button {
            color: #000;
            font-weight: bold;
            top: 3px;
        }
    }

    .el-dialog__body {
        padding: 21px 36px !important;
    }

    .el-dialog__footer {
        height: 64px;

        box-sizing: border-box;
        /* 线条/line-2 */
        border-width: 1px 0px 0px 0px;
        border-style: solid;
        border-color: #e5e6eb;
        padding: unset;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 21px;

        .el-button {
            width: 60px;
            height: 32px;
        }
    }
}

@font-face {
    font-family: "R";
    font-weight: 400;
    src: url("../assets/font/PingFang\ Medium.ttf") format("woff2");
    font-display: swap;
}


#graph-canvas {
    width: 100%;
    height: calc(100vh - 80px);
    overflow: hidden;
}